﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adm/Admin.Master" AutoEventWireup="true" CodeBehind="ForwardToExhibition.aspx.cs" Inherits="InstituteManager.adm.ForwardToExhibition" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">





	<h3>Forward Posting to Exhibition</h3>
	
    <asp:Panel ID="pnlMessage" runat="server" CssClass="informasi" Visible="False">
        <asp:Label ID="lblMessage" runat="server" Text="Message"></asp:Label>
    </asp:Panel>


    <asp:Panel ID="pnlView" runat="server" CssClass="clssdiv">
    <div class="control">
        <asp:LinkButton ID="lbtRefreshT" runat="server" CssClass="refresh" 
            onclick="lbtRefresh_Click">Refresh</asp:LinkButton>
        |<a href="javascript:history.back();" id="lbtBackTV" Class="back" 
            >Go Back</a>
    </div>
    
    <div style="margin-left:5%;margin-top:20px;">
            <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
            <asp:ImageButton ID="ibtSearch" runat="server" CssClass="search"
                ImageUrl="~/images/icons/google_custom_search.png" ToolTip="Search" 
                onclick="ibtSearch_Click" />
        </div>
    
        <asp:GridView ID="grvView" runat="server" CssClass="data" 
            AutoGenerateColumns="False" EnableModelValidation="True" 
            onrowdatabound="grvView_RowDataBound" AllowPaging="True" 
            onpageindexchanging="grvView_PageIndexChanging" 
            onrowcommand="grvView_RowCommand" DataKeyNames="PostingId">
                <Columns>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chkSelectAll" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="PostingId" HeaderText="PostingId" 
                        Visible="False" />
                    <asp:BoundField DataField="PostingName" HeaderText="Posting Name" />
                    <asp:BoundField DataField="PostDate" HeaderText="Post Date" 
                        DataFormatString="{0:d}" />
                    <asp:BoundField DataField="Price" HeaderText="Price" />
                    <asp:TemplateField HeaderText="Mark">
                        
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# getMarkString(DataBinder.Eval (Container.DataItem, "Mark")) %>'></asp:Label>
                            &nbsp;&nbsp;&nbsp;
                            <asp:Image ID="Image1" runat="server"  ImageUrl="~/images/icons/picture_go.png" ToolTip="Exhibition sent" AlternateText="Exhibition sent" Visible='<%# isExhibitionSent(DataBinder.Eval (Container.DataItem, "PostingId")) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Command">
                        <ItemTemplate>

                            <asp:ImageButton ID="ibtView" runat="server" AlternateText="View" CommandArgument='<%# DataBinder.Eval (Container.DataItem, "PostingId") %>'
                                CommandName="cmdView" ImageUrl="~/images/icons/eye.png" ToolTip="View" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="data" />
                <PagerSettings Mode="NumericFirstLast" PageButtonCount="5" />
                <PagerStyle HorizontalAlign="Center" Wrap="True" />
                <RowStyle CssClass="data" />
            </asp:GridView>

                

      <div class="control">
        <asp:LinkButton ID="lbtRefreshB" runat="server" CssClass="refresh" onclick="lbtRefresh_Click">Refresh</asp:LinkButton>
        |<a href="javascript:history.back();" ID="lbtBackB" Class="back">Go Back</a>
    </div>
    </asp:Panel>
    
   
    <asp:Panel ID="pnlDetail" runat="server" Visible="False">
        <div class="control">
            <asp:LinkButton ID="lbtSaveT" runat="server" CssClass="postSend" onclick="lbtSave_Click">Send</asp:LinkButton>
            |<asp:LinkButton ID="lbtBackUT" runat="server" CssClass="back" OnClick="lbtBackDetail_Click" CausesValidation="False">Go Back</asp:LinkButton>

        </div>

        <asp:TextBox ID="txtId" runat="server" Visible="False"></asp:TextBox>

        <table width="95%" class="data">
            <tr><th>Data Name</th><th>&nbsp;Data</th></tr>

			    <tr><td width="125px"><b>Posting Name</b></td><td> 
                    <asp:Label ID="lblPostingName" runat="server" Text=""></asp:Label>
                    </td></tr>
			    <tr><td><b>Post Date</b></td><td>
                    <asp:Label ID="lblPostDate" runat="server" Text=""></asp:Label>
                    </td></tr>
                <tr><td><b>Description</b></td><td>
                    <asp:Label ID="lblDescription" runat="server" Text=""></asp:Label>
                    </td></tr>
			    <tr><td><b>Price</b></td><td>
                    <asp:Label ID="lblPrice" runat="server" Text=""></asp:Label>
                    </td></tr>                
                 <tr><td ><b>Mark</b></td><td>
                     <asp:Label ID="lblMark" runat="server" Text=""></asp:Label>
                    </td></tr>
                <tr><td ><b>Remark</b></td><td>
                     <asp:Label ID="lblRemark" runat="server" Text=""></asp:Label>
                    </td></tr>
                <tr><td ><b>Image</b></td><td>
                    <asp:Image ID="imgImage" runat="server" ImageUrl="~/images/icons/eye.png" CssClass="imageShow"
                         />
                    </td></tr>
			    </table>
        
		    <table width="95%" class="update">
			    <tr><td width="125px"><b>Exhibition Name</b></td><td> 
                    <asp:DropDownList ID="ddlExhibitionName" runat="server">
                    </asp:DropDownList>
                    </td></tr>			    
                
			    </table>

            
        <div class="control">
            <asp:LinkButton ID="lbtSaveB" runat="server" CssClass="postSend" 
                onclick="lbtSave_Click">Send</asp:LinkButton>
            |<asp:LinkButton ID="lbtBackUB" runat="server" CssClass="back" OnClick="lbtBackDetail_Click" CausesValidation="False">Go Back</asp:LinkButton>
        </div>
    </asp:Panel>

   




</asp:Content>
